<script setup>
import { ref } from 'vue'
import { getBannerAPI } from '@/api'
const bannerList = ref([])
async function getBannerList() {
  const { result } = await getBannerAPI()
  bannerList.value = result
}
getBannerList()
</script>

<template>
  <div class="home-banner">
    <XtxSlider :sliders="bannerList" />
  </div>
</template>

<style lang="less" scoped>
.home-banner {
  width: 1240px;
  height: 500px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 98;
}
</style>
